package com.ff.xyh.common.entity.post;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 旅游凑单表
 * </p>
 *
 * @author ff
 * @since 2022-10-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PostTravel对象", description="旅游凑单表")
public class PostTravel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "景区名")
    private String name;

    @ApiModelProperty(value = "发帖人")
    private String userId;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "平台")
    private Integer platformId;

    @ApiModelProperty(value = "帖子照片集0:无;1:有; def:0")
    private Integer ifImgs;

    @ApiModelProperty(value = "封面，首张照片url")
    private String coverUrl;

    @ApiModelProperty(value = "人均大约消费  不可超过 100000 单位: 分")
    private Integer consumePrice;

    @ApiModelProperty(value = "发帖人预订人数")
    private Integer userNumber;

    @ApiModelProperty(value = "最多人数，不可大于20  前端最大+发帖人预订")
    private Integer totalMax;

    @ApiModelProperty(value = "最少人数 前端最小+发帖人预订")
    private Integer totalMin;

    @ApiModelProperty(value = "出发时间")
    private Date gmtSetoff;

    @ApiModelProperty(value = "有效期")
    private Date gmtEffective;

    @ApiModelProperty(value = "帖子状态")
    private Integer postStatus;

    @ApiModelProperty(value = "审核状态 对应check_status表")
    private Integer checkStatus;

    @ApiModelProperty(value = "审核员 id 对应access_user表")
    private String checkerId;

    @ApiModelProperty(value = "0: 正常 1: 已删除")
    private Integer isDeleted;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreated;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
